package cn.eng.org.service;

import cn.eng.basic.util.AjaxResult;
import cn.eng.org.domain.Shop;
import cn.eng.basic.service.IBaseService;
import cn.eng.org.domain.ShopAuditLog;
import cn.eng.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author BoBo
 * @since 2022-11-01
 */
public interface IShopService extends IBaseService<Shop> {
    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 审核通过
     * @param log
     * @throws MessagingException
     */
    void pass(ShopAuditLog log) throws MessagingException;

    /**
     * 驳回通过
     * @param log
     * @throws MessagingException
     */
    void reject(ShopAuditLog log) throws MessagingException;

    /**
     * 图形 Echarts报表
     * @return
     */
    List<ShopDto> echarts();

    /**店铺激活业务激活
     * @param id
     * @return
     */
    void active(Long id) throws MessagingException;



}
